/* 
 *	Copyright (C) 2009-2010 miaohua
 *	http://code.google.com/p/lrcshower/
 *
 *  This Program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2, or (at your option)
 *  any later version.
 *   
 *  This Program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *  GNU General Public License for more details.
 *   
 *  You should have received a copy of the GNU General Public License
 *  along with GNU Make; see the file COPYING.  If not, write to
 *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
 *  http://www.gnu.org/copyleft/gpl.html
 *
 */

#pragma once
#include "afxwin.h"
#include "afxcmn.h"


// CLrcSearchPage dialog
// Lrc search (online or local) setting page
class CLrcSearchPage : public CDialog
{
	DECLARE_DYNAMIC(CLrcSearchPage)

public:
	CLrcSearchPage(CWnd* pParent = NULL);   // standard constructor
	virtual ~CLrcSearchPage();

    // Dialog Data
	enum { IDD = IDD_SEARCHLRC_PAGE };

protected:
    BOOL OnInitDialog();
    afx_msg void OnBnClickedSetFolderBtn();
    afx_msg void OnBnClickedAutoSearchChk();
    afx_msg void OnBnClickedRandSelChk();
    afx_msg void OnBnClickedMultiPromptChk();
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
    afx_msg void OnBnClickedAddFolderBtn();
    afx_msg void OnBnClickedDelFolderBtn();
    afx_msg void OnBnClickedFolderUpBtn();
    afx_msg void OnBnClickedFolderDownBtn();
    afx_msg void OnCbnSelchangeSearchEngineSel();
    afx_msg void OnNMClickFolderList(NMHDR *pNMHDR, LRESULT *pResult);

	DECLARE_MESSAGE_MAP()


private:
     // Set buttons state according to m_FolderCurSelIdx(current selected folder's index)
     void CheckFolderBtns();
     // Member data
     CComboBox m_EngineSel;         // Lrc search engine selection
     CListCtrl m_FolderList;        // Local search folder list
     int m_FolderCurSelIdx;         // Current selected folder's index
};
